#ifndef TABMODEL3_H
#define TABMODEL3_H

#include <QtSql>
#include <QMap>
#include "schema.h"

class TabModel3: public QSqlTableModel
{
Q_OBJECT

public:

TabModel3( QObject * parent,
           QSqlDatabase db,
           QMap<int, int> asc_indices_arg,
           QMap<int, int> desc_indices_arg );
~TabModel3();
Qt::ItemFlags flags( const QModelIndex & index) const;
QVariant data(const QModelIndex & item, int role) const;

private:
QMap<int, QString> map;
void setup_map();
QMap<int, int> asc_indices;
QMap<int, int> desc_indices;

};

#endif // TABMODEL3_H
